package com.ruge.seckill.dao;

import com.ruge.core.response.Response;
import com.ruge.seckill.config.FeignConfig;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ruge.wu
 * @since 2022/2/21 16:02
 */
@FeignClient(name="ruge-user",configuration = FeignConfig.class)
//@FeignClient(name = "${feign.name}", url = "${feign.url}")
public interface UserFeign {
    @GetMapping("/internal/user/getUserInfo")
    @ApiOperation(value = "【用户】  获取当前登录用户信息")
    Response getUserInfo(@RequestParam("aid") Long aid);
}
